import {
  sopPitchOn,
  getSopFileListByTask,
  sopBatchSave,
  sopUpdateProjectFile,
  sopSaveProjectFile,
  sopDeleteProjectFile,
  sopEditDisplayOrder
} from '@@/api/fileList'
import { TagList } from '@@/enums/common'
// 初始化相关配置
export function initConfigInfo() {
  return {
    selectFileListApi: sopPitchOn, // 选择文件清单
    selectWhiteApi: sopBatchSave, //选择空白模板，批量新增文件清单保存
    updateFileListApi: sopUpdateProjectFile, //编辑文件清单
    addFileListApi: sopSaveProjectFile, //新增文件清单
    delFileListApi: sopDeleteProjectFile, //删除文件清单
    displayOrderFileListApi: sopEditDisplayOrder, //修改文件清单顺序
    getTaskFileListApi: getSopFileListByTask // 查询任务的文件清单
  }
}

export const fileListTabs1 = [
  {
    label: '接收申请',
    value: 1,
    tag: TagList.One
  },
  {
    label: '接收入库',
    value: 2,
    tag: TagList.Two
  },
  {
    label: '暂收/拒收核验',
    value: 4,
    tag: TagList.Three
  },
  {
    label: '暂收反馈',
    value: 8,
    tag: TagList.Four
  }
]

export const flowListTabs1 = [
  {
    label: '接收申请',
    value: 1,
    tag: TagList.One
  },
  {
    label: '暂收反馈',
    value: 2,
    copyFlowTag: 1, // 复制别的tag的flow
    tag: TagList.Two
  }
]
export const flowListTabs7 = [
  {
    label: '销毁申请',
    value: 1,
    tag: TagList.One
  },
  {
    label: '销毁确认',
    value: 2,
    tag: TagList.Two
  }
]
export const fileListTabs5 = [
  {
    label: '设置为正常',
    value: 1,
    tag: TagList.One
  },
  {
    label: '设置为隔离',
    value: 2,
    tag: TagList.Two
  },
  // {
  //   label: '隔离反馈',
  //   value: 4,
  //   tag: TagList.Three
  // },
  {
    label: '设置为留样',
    value: 8,
    tag: TagList.Four
  },
  {
    label: '设置为丢失',
    value: 16,
    tag: TagList.Five
  }
]

// 移库
export const fileListTabs6 = [
  {
    label: '新增',
    value: 1,
    tag: TagList.One
  },
  {
    label: '接收',
    value: 2,
    tag: TagList.Two
  }
]

// 销毁
export const fileListTabs7 = [
  {
    label: '销毁申请',
    value: 1,
    tag: TagList.One
  },
  {
    label: '销毁审批',
    value: 2,
    tag: TagList.Two
  },
  {
    label: '销毁确认',
    value: 4,
    tag: TagList.Three
  }
]

export const flowListTabs5 = [
  {
    label: '设置为正常',
    value: 1,
    tag: TagList.One
  },
  {
    label: '设置为隔离',
    value: 2,
    tag: TagList.Two
  },
  {
    label: '隔离反馈',
    value: 4,
    tag: TagList.Three
  },
  {
    label: '设置为留样',
    value: 8,
    tag: TagList.Four
  },
  {
    label: '设置为丢失',
    value: 16,
    tag: TagList.Five
  }
]
